package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UgcCollect entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ugc_collect", catalog = "mr_plants")
public class UgcCollect implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer contentId;
	private Integer contentType;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public UgcCollect() {
	}

	/** full constructor */
	public UgcCollect(Integer userId, Integer contentId, Integer contentType,
			Timestamp createTime, String ip) {
		this.userId = userId;
		this.contentId = contentId;
		this.contentType = contentType;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "content_id")
	public Integer getContentId() {
		return this.contentId;
	}

	public void setContentId(Integer contentId) {
		this.contentId = contentId;
	}

	@Column(name = "content_type")
	public Integer getContentType() {
		return this.contentType;
	}

	public void setContentType(Integer contentType) {
		this.contentType = contentType;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip")
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}